<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>PathTest</title>
</head>
<body>
	
</body>
</html>
<script src="<{$root}>codeAdmin/Public/js/jquery-1.7.2.min.js"></script>
<script>


function paths(json,parent) {
	for (var e in json) {
		if (!isNaN(e)) {
			var filepath=parent+"/"+json[e];
			console.log(filepath);
		} else{
			paths(json[e],parent+"/"+e);
		};
	};
}



	$(document).ready(function() {
		var json_dir = $.ajax({
			url: "<{:U("filetree/dir")}>",
			async: false
		}).responseText;
		var json_dir=eval("["+json_dir+"]")[0];
		// console.log(json_dir);
		paths(json_dir,"");
	});
</script>